package com.tmindtech.api.enterprise.db

import com.tmindtech.api.enterprise.model.SunKitchen
import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select
import tk.mybatis.mapper.common.Mapper
import java.util.*

/**
 * Created by RexQian on 2017/11/30.
 */
interface SunKitchenMapper : Mapper<SunKitchen> {
    //todo without log time , default use create_time.
    @Select("SELECT * FROM t_sun_kitchen WHERE enterprise_id = \${enterprise_id} AND create_time >= #{start_time} AND create_time < #{end_time}")
    fun selectByCondition(@Param("enterprise_id") enterpriseId: Long,
                          @Param("start_time") startTime: Date,
                          @Param("end_time") endTime: Date): List<SunKitchen>
}
